package com.xbx.baseweb.constant;

/**
 * 错误码
 */
public enum ResponseCode {

    SUCCESS(0, "正常"),

    SERVER_ERROR(-999, "服务器异常"),

    MISS_INFO(-1, "缺少必要信息"),

    INVALID_PARAM(-4,"参数错误"),

    DATA_NOT_EXISTS(-5,"数据不存在"),

    BUSSINESS_ERROR(-7,"业务异常"),

    BUSSINESS_FAIL(-2,"请求失败"),


    /************************************管理后台错误**************************************************/
    ADMIN_USER_NOT_EXISTS(-10001,"用户名不存在"),
    ADMIN_USER_PASSWORD_ERROR(-10002,"密码错误"),


    /************************************商户错误**************************************************/
    APPACCOUNT_NOT_EXISTS(-20001,"商户不存在"),


    /************************************活动错误**************************************************/
    ACTIVITY_NOT_EXISTS(-30001,"活动不存在"),

    /************************************统计错误**************************************************/
    STATISTICS_CONFIG_NOT_EXISTS(-40001,"统计配置不存在"),



    BUSSINESS_ERROR1(-7,"业务异常");

    private int code;

    private String message;

    ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
